<%@ Register TagPrefix="uc1" TagName="ProtocolDetailHeader" Src="ProtocolDetailHeader.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc3" Namespace="Workflow.NET.Web.ActivityControl" Assembly="Workflow.NET.Web.ActivityControl" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.WorkFlowActivityDetail"
    CodeFile="WorkFlowActivityDetail.aspx.cs" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Workflow Activity Detail</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript">    
			function MakeControlsInvisible()
			{					
				var advanceSearchTab = document.getElementById('advanceSearchTable');				
				if (advanceSearchTab)
				{				
					advanceSearchTab.style.display= 'none';															
				}
				
				SetDateCorrection();
			}
			
			function SetDateCorrection()
			{
				var obj;
				var counter1=0;
				var formElements = document.getElementsByTagName("input");

				for (counter1=0;counter1<=formElements.length;counter1++)
				{
					if ( formElements[counter1] )
					{
						if ( formElements[counter1].name == "datecorrectionfactor" )
						{						
							formElements[counter1].value = "00.5:0:00";												
						}
					}
				}			
			}									
    </script>

</head>
<body onload="MakeControlsInvisible();">
    <form id="Form1" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="header" runat="server"></cc1:Header>
                                <cc1:HumansSubModuleNavigation ID="humansSubModuleNavigation" runat="server" Visible="false" />
                                <cc1:AnimalsSubModuleNavigation ID="animalsSubModuleNavigation" runat="server" Visible="false" />
                                <uc1:ProtocolDetailHeader ID="wfActivityDetailHeader" runat="server"></uc1:ProtocolDetailHeader>
                                <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                                <cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
                                <cc2:Annunciator ID="annunciator" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table width="100%">
                        <tr>
                            <td>
                                <asp:Panel ID="wfActivityDetailActionContainer" runat="server" Width="100%">
                                    <table cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td valign="top" align="left">
                                                &nbsp;&nbsp;&nbsp;<asp:ImageButton id="viewFullApplication" runat="server" ImageUrl="../Images/b_viewfullapp.gif" />
                                                &nbsp;&nbsp;&nbsp;<asp:ImageButton id="viewApplication" runat="server" ImageUrl="../Images/b_view_app.gif" />                                               
                                                <br />
                                                <br />
                                                <cc3:ActivityControl ID="wfActivity" runat="server" Width="100%">
                                                </cc3:ActivityControl>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
